package com.naughty.userlogin02.dao;

import com.naughty.userlogin02.bean.Classg;
import com.naughty.userlogin02.bean.Work;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WorkDao {
    //方法体
    //得到所有班级信息
    public List<Work> getAllWork(@Param("wtitle") String wtitle, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    //得到班级数
    public int getWorkCounts(@Param("wtitle") String wtitle);
    //添加班级信息
    public int addWork(Work work);
    //修改班级信息
    public Work getUpdateWork(String wid);
    public int editWork(Work work);
    //删除班级信息
    public int deleteWork(String wid);

}
